package com.resource.provider.exception;

/**
 * Created by rickon on 2017/3/27.
 */
public class ParameterException extends RuntimeException {
    private String code;
    private String message;

    public ParameterException() {
        this.code = "-1";
        this.message = "参数不能为空";
    }

    public ParameterException(String message) {
        this.code = "-1";
        this.message = message;
    }

    public ParameterException(String code, String message) {
        this.code = code;
        this.message = message;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    @Override
    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }
}
